<?php
$conn=mysqli_connect('localhost','root','root','school') or die('连接失败');
    $book_id=$_GET['book_id'];
    echo $book_id;
    $delete="delete from book where book_id=$book_id ";
    $mq=mysqli_query($conn,$delete);
    if (empty($mq)){
        echo "<script>alert('删除失败！');location.href='".$_SERVER["HTTP_REFERER"]."';</script>";
    }else{
        echo "<script>alert('删除成功！');location.href='".$_SERVER["HTTP_REFERER"]."';</script>";
    }
